<template>
  <div class="case-event-left-top">
    <div class="title-num">
      <div>
        <span>{{total}}</span>
        <span>案事件</span>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import EventBus from '../../../../../utils/eventBus'
@Component({
  name: 'case-event-left-top',
  components: {
  }
})
export default class CaseEventLeftTop extends Vue {
  private topBg: string = require('assets/images/situational-awareness/case-event-num-bg.png')

  private total = '0'

  mounted () {
    EventBus.$on('getCaseTotalPer', (e: any) => {
      this.total = e
    })
  }
  beforeDestroy () {
    EventBus.$off()
  }
}
</script>

<style lang="scss" scoped>
.case-event-left-top {
 box-sizing: border-box;
  width: 100%;
  height: 20%;
  display: flex;
  align-items: center;
  .title-num {
    box-sizing: border-box;
    width: 442px;
    height: 133px;
    background: url('../../../../../assets/images/situational-awareness/case-event-num-bg.png') no-repeat center;
    background-size: 100% 100%;
    margin: auto;
    padding: 30px 0px 36px 0;
    div {
      box-sizing: border-box;
      width: calc(100% - 159px);
      margin-left: 159px;
      padding-left: 30px;
      span:nth-child(1) {
        display: block;
        color: #ffffff;
        font-size: 30px;
        font-family: 'PingFang Simple Bold';
        text-align: left;
      }
      span:nth-child(2) {
        display: block;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.76);
        font-family: 'PingFang Regular';
        text-align: left;
      }
    }
  }
}
</style>
